package com.lhj.springboot3.features.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author lhj
 * @Date 2024/6/23 17:56
 */
@RestController
public class HelloController {
    
    @Value("${name:default_name}")
    private String name;
    
    @GetMapping("helloConfig")
    public String helloConfig() {
        return name;
    }
}
